package com.aseo.business.hibernate;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.aseo.model.dao.Dao;
import com.aseo.model.entity.hibernate.Cargo;

@Service
public class CargoManager implements ManagerInterface<Cargo> {

	@Resource  
	private Dao dao;
	  
	@Override
	public void persist(Cargo cargo) {  
		dao.persist(cargo);
	}  
	  
	@Override
	public List<Cargo> getAll() {
		final List<Cargo> list = dao.find(Cargo.class);  
	    return list;
	}

	
	public List<Cargo> getCargos() {
		final List<Cargo> list = dao.find(Cargo.class);  
	    return list;
	}
}